package com.bulk.demo.insert.controller;

import com.bulk.demo.insert.service.ITransactionInvalidationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 散装java
 */
@RestController
@RequestMapping("/transaction")
public class TransactionInvalidationController {
    @Resource
    ITransactionInvalidationService transactionInvalidationService;

    @GetMapping("/")
    public String test() {
        transactionInvalidationService.invalidationThis();
        return "ok";
    }
}
